package Server.ServerCore.Model.dbsql.model;

import java.util.ArrayList;
import java.util.List;

public class GameRoleExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GameRoleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRidIsNull() {
            addCriterion("RID is null");
            return (Criteria) this;
        }

        public Criteria andRidIsNotNull() {
            addCriterion("RID is not null");
            return (Criteria) this;
        }

        public Criteria andRidEqualTo(Integer value) {
            addCriterion("RID =", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidNotEqualTo(Integer value) {
            addCriterion("RID <>", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidGreaterThan(Integer value) {
            addCriterion("RID >", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidGreaterThanOrEqualTo(Integer value) {
            addCriterion("RID >=", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidLessThan(Integer value) {
            addCriterion("RID <", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidLessThanOrEqualTo(Integer value) {
            addCriterion("RID <=", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidIn(List<Integer> values) {
            addCriterion("RID in", values, "rid");
            return (Criteria) this;
        }

        public Criteria andRidNotIn(List<Integer> values) {
            addCriterion("RID not in", values, "rid");
            return (Criteria) this;
        }

        public Criteria andRidBetween(Integer value1, Integer value2) {
            addCriterion("RID between", value1, value2, "rid");
            return (Criteria) this;
        }

        public Criteria andRidNotBetween(Integer value1, Integer value2) {
            addCriterion("RID not between", value1, value2, "rid");
            return (Criteria) this;
        }

        public Criteria andRoleNameIsNull() {
            addCriterion("ROLE_NAME is null");
            return (Criteria) this;
        }

        public Criteria andRoleNameIsNotNull() {
            addCriterion("ROLE_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andRoleNameEqualTo(String value) {
            addCriterion("ROLE_NAME =", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameNotEqualTo(String value) {
            addCriterion("ROLE_NAME <>", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameGreaterThan(String value) {
            addCriterion("ROLE_NAME >", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameGreaterThanOrEqualTo(String value) {
            addCriterion("ROLE_NAME >=", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameLessThan(String value) {
            addCriterion("ROLE_NAME <", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameLessThanOrEqualTo(String value) {
            addCriterion("ROLE_NAME <=", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameLike(String value) {
            addCriterion("ROLE_NAME like", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameNotLike(String value) {
            addCriterion("ROLE_NAME not like", value, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameIn(List<String> values) {
            addCriterion("ROLE_NAME in", values, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameNotIn(List<String> values) {
            addCriterion("ROLE_NAME not in", values, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameBetween(String value1, String value2) {
            addCriterion("ROLE_NAME between", value1, value2, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleNameNotBetween(String value1, String value2) {
            addCriterion("ROLE_NAME not between", value1, value2, "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleIntegrationIsNull() {
            addCriterion("ROLE_INTEGRATION is null");
            return (Criteria) this;
        }

        public Criteria andRoleIntegrationIsNotNull() {
            addCriterion("ROLE_INTEGRATION is not null");
            return (Criteria) this;
        }

        public Criteria andRoleIntegrationEqualTo(Double value) {
            addCriterion("ROLE_INTEGRATION =", value, "roleIntegration");
            return (Criteria) this;
        }

        public Criteria andRoleIntegrationNotEqualTo(Double value) {
            addCriterion("ROLE_INTEGRATION <>", value, "roleIntegration");
            return (Criteria) this;
        }

        public Criteria andRoleIntegrationGreaterThan(Double value) {
            addCriterion("ROLE_INTEGRATION >", value, "roleIntegration");
            return (Criteria) this;
        }

        public Criteria andRoleIntegrationGreaterThanOrEqualTo(Double value) {
            addCriterion("ROLE_INTEGRATION >=", value, "roleIntegration");
            return (Criteria) this;
        }

        public Criteria andRoleIntegrationLessThan(Double value) {
            addCriterion("ROLE_INTEGRATION <", value, "roleIntegration");
            return (Criteria) this;
        }

        public Criteria andRoleIntegrationLessThanOrEqualTo(Double value) {
            addCriterion("ROLE_INTEGRATION <=", value, "roleIntegration");
            return (Criteria) this;
        }

        public Criteria andRoleIntegrationIn(List<Double> values) {
            addCriterion("ROLE_INTEGRATION in", values, "roleIntegration");
            return (Criteria) this;
        }

        public Criteria andRoleIntegrationNotIn(List<Double> values) {
            addCriterion("ROLE_INTEGRATION not in", values, "roleIntegration");
            return (Criteria) this;
        }

        public Criteria andRoleIntegrationBetween(Double value1, Double value2) {
            addCriterion("ROLE_INTEGRATION between", value1, value2, "roleIntegration");
            return (Criteria) this;
        }

        public Criteria andRoleIntegrationNotBetween(Double value1, Double value2) {
            addCriterion("ROLE_INTEGRATION not between", value1, value2, "roleIntegration");
            return (Criteria) this;
        }

        public Criteria andRoleBargainingChipIsNull() {
            addCriterion("ROLE_BARGAINING_CHIP is null");
            return (Criteria) this;
        }

        public Criteria andRoleBargainingChipIsNotNull() {
            addCriterion("ROLE_BARGAINING_CHIP is not null");
            return (Criteria) this;
        }

        public Criteria andRoleBargainingChipEqualTo(Double value) {
            addCriterion("ROLE_BARGAINING_CHIP =", value, "roleBargainingChip");
            return (Criteria) this;
        }

        public Criteria andRoleBargainingChipNotEqualTo(Double value) {
            addCriterion("ROLE_BARGAINING_CHIP <>", value, "roleBargainingChip");
            return (Criteria) this;
        }

        public Criteria andRoleBargainingChipGreaterThan(Double value) {
            addCriterion("ROLE_BARGAINING_CHIP >", value, "roleBargainingChip");
            return (Criteria) this;
        }

        public Criteria andRoleBargainingChipGreaterThanOrEqualTo(Double value) {
            addCriterion("ROLE_BARGAINING_CHIP >=", value, "roleBargainingChip");
            return (Criteria) this;
        }

        public Criteria andRoleBargainingChipLessThan(Double value) {
            addCriterion("ROLE_BARGAINING_CHIP <", value, "roleBargainingChip");
            return (Criteria) this;
        }

        public Criteria andRoleBargainingChipLessThanOrEqualTo(Double value) {
            addCriterion("ROLE_BARGAINING_CHIP <=", value, "roleBargainingChip");
            return (Criteria) this;
        }

        public Criteria andRoleBargainingChipIn(List<Double> values) {
            addCriterion("ROLE_BARGAINING_CHIP in", values, "roleBargainingChip");
            return (Criteria) this;
        }

        public Criteria andRoleBargainingChipNotIn(List<Double> values) {
            addCriterion("ROLE_BARGAINING_CHIP not in", values, "roleBargainingChip");
            return (Criteria) this;
        }

        public Criteria andRoleBargainingChipBetween(Double value1, Double value2) {
            addCriterion("ROLE_BARGAINING_CHIP between", value1, value2, "roleBargainingChip");
            return (Criteria) this;
        }

        public Criteria andRoleBargainingChipNotBetween(Double value1, Double value2) {
            addCriterion("ROLE_BARGAINING_CHIP not between", value1, value2, "roleBargainingChip");
            return (Criteria) this;
        }

        public Criteria andRoleAccountIsNull() {
            addCriterion("ROLE_ACCOUNT is null");
            return (Criteria) this;
        }

        public Criteria andRoleAccountIsNotNull() {
            addCriterion("ROLE_ACCOUNT is not null");
            return (Criteria) this;
        }

        public Criteria andRoleAccountEqualTo(String value) {
            addCriterion("ROLE_ACCOUNT =", value, "roleAccount");
            return (Criteria) this;
        }

        public Criteria andRoleAccountNotEqualTo(String value) {
            addCriterion("ROLE_ACCOUNT <>", value, "roleAccount");
            return (Criteria) this;
        }

        public Criteria andRoleAccountGreaterThan(String value) {
            addCriterion("ROLE_ACCOUNT >", value, "roleAccount");
            return (Criteria) this;
        }

        public Criteria andRoleAccountGreaterThanOrEqualTo(String value) {
            addCriterion("ROLE_ACCOUNT >=", value, "roleAccount");
            return (Criteria) this;
        }

        public Criteria andRoleAccountLessThan(String value) {
            addCriterion("ROLE_ACCOUNT <", value, "roleAccount");
            return (Criteria) this;
        }

        public Criteria andRoleAccountLessThanOrEqualTo(String value) {
            addCriterion("ROLE_ACCOUNT <=", value, "roleAccount");
            return (Criteria) this;
        }

        public Criteria andRoleAccountLike(String value) {
            addCriterion("ROLE_ACCOUNT like", value, "roleAccount");
            return (Criteria) this;
        }

        public Criteria andRoleAccountNotLike(String value) {
            addCriterion("ROLE_ACCOUNT not like", value, "roleAccount");
            return (Criteria) this;
        }

        public Criteria andRoleAccountIn(List<String> values) {
            addCriterion("ROLE_ACCOUNT in", values, "roleAccount");
            return (Criteria) this;
        }

        public Criteria andRoleAccountNotIn(List<String> values) {
            addCriterion("ROLE_ACCOUNT not in", values, "roleAccount");
            return (Criteria) this;
        }

        public Criteria andRoleAccountBetween(String value1, String value2) {
            addCriterion("ROLE_ACCOUNT between", value1, value2, "roleAccount");
            return (Criteria) this;
        }

        public Criteria andRoleAccountNotBetween(String value1, String value2) {
            addCriterion("ROLE_ACCOUNT not between", value1, value2, "roleAccount");
            return (Criteria) this;
        }

        public Criteria andRolePasswordIsNull() {
            addCriterion("ROLE_PASSWORD is null");
            return (Criteria) this;
        }

        public Criteria andRolePasswordIsNotNull() {
            addCriterion("ROLE_PASSWORD is not null");
            return (Criteria) this;
        }

        public Criteria andRolePasswordEqualTo(String value) {
            addCriterion("ROLE_PASSWORD =", value, "rolePassword");
            return (Criteria) this;
        }

        public Criteria andRolePasswordNotEqualTo(String value) {
            addCriterion("ROLE_PASSWORD <>", value, "rolePassword");
            return (Criteria) this;
        }

        public Criteria andRolePasswordGreaterThan(String value) {
            addCriterion("ROLE_PASSWORD >", value, "rolePassword");
            return (Criteria) this;
        }

        public Criteria andRolePasswordGreaterThanOrEqualTo(String value) {
            addCriterion("ROLE_PASSWORD >=", value, "rolePassword");
            return (Criteria) this;
        }

        public Criteria andRolePasswordLessThan(String value) {
            addCriterion("ROLE_PASSWORD <", value, "rolePassword");
            return (Criteria) this;
        }

        public Criteria andRolePasswordLessThanOrEqualTo(String value) {
            addCriterion("ROLE_PASSWORD <=", value, "rolePassword");
            return (Criteria) this;
        }

        public Criteria andRolePasswordLike(String value) {
            addCriterion("ROLE_PASSWORD like", value, "rolePassword");
            return (Criteria) this;
        }

        public Criteria andRolePasswordNotLike(String value) {
            addCriterion("ROLE_PASSWORD not like", value, "rolePassword");
            return (Criteria) this;
        }

        public Criteria andRolePasswordIn(List<String> values) {
            addCriterion("ROLE_PASSWORD in", values, "rolePassword");
            return (Criteria) this;
        }

        public Criteria andRolePasswordNotIn(List<String> values) {
            addCriterion("ROLE_PASSWORD not in", values, "rolePassword");
            return (Criteria) this;
        }

        public Criteria andRolePasswordBetween(String value1, String value2) {
            addCriterion("ROLE_PASSWORD between", value1, value2, "rolePassword");
            return (Criteria) this;
        }

        public Criteria andRolePasswordNotBetween(String value1, String value2) {
            addCriterion("ROLE_PASSWORD not between", value1, value2, "rolePassword");
            return (Criteria) this;
        }

        public Criteria andRoleNameLikeInsensitive(String value) {
            addCriterion("upper(ROLE_NAME) like", value.toUpperCase(), "roleName");
            return (Criteria) this;
        }

        public Criteria andRoleAccountLikeInsensitive(String value) {
            addCriterion("upper(ROLE_ACCOUNT) like", value.toUpperCase(), "roleAccount");
            return (Criteria) this;
        }

        public Criteria andRolePasswordLikeInsensitive(String value) {
            addCriterion("upper(ROLE_PASSWORD) like", value.toUpperCase(), "rolePassword");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}